package com.xuecheng.content.service;

import com.xuecheng.api.content.model.dto.CourseBaseDTO;
import com.xuecheng.api.content.model.qo.QueryCourseBaseModel;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.content.entity.CourseBase;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-08
 */
public interface CourseBaseService extends IService<CourseBase> {

    /**
     * @param params
     * @param model
     * @return
     */
    PageVO queryCourseList(PageRequestParams params, QueryCourseBaseModel model,Long companyId);



    CourseBaseDTO createCourseBase(CourseBaseDTO dto);


    CourseBaseDTO modifyCourseBase(CourseBaseDTO dto);


    CourseBaseDTO getCourseBaseById(Long courseBaseId,Long companyId);


    void removeCourseBase(Long courseBaseId,Long companyId);

    /**
     * 教学机构提交课程
     * @param courseId Long 课程id
     * @param companyId Long 教学机构id
     */
    void commitCourseBase(Long courseId,Long companyId);


    void approveCourse(CourseBaseDTO dto);
}
